package com.eclipse.e20200131_模拟连接池.com.qf.app1.m4;

import java.sql.Connection;
import java.sql.PreparedStatement;

import javax.sql.DataSource;

public class Test3 {

	public static void main(String[] args) throws Exception {
		DataSource dataSource = new ConnectionPoolDataSource2();

		Connection connection = dataSource.getConnection();

		PreparedStatement prepareStatement = connection.prepareStatement("select 1");

		prepareStatement.executeQuery();

		connection.close();

	}

}
